package com.jmxcfc.blfsc.ninefour.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 94语音 异步通知过来,响应实体给对方:
 * 回调返回成功的标准是http状态码为200，并且返回的内容体的status参数也为200
 * @author pbs
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class NotifyResponseVo {

    /**
     * 状态:200 成功,100失败
     */
    private String status;


    /**
     *提示
     */
    private String message;


    /**
     * 失败
     * @param message
     * @return
     */
    public static  NotifyResponseVo fail(String message) {
        NotifyResponseVo notifyResponseVo = new NotifyResponseVo();
        notifyResponseVo.setStatus("100");
        notifyResponseVo.setMessage(message);
        return notifyResponseVo;
    }

    /**
     * 成功
     * @return
     */
    public static  NotifyResponseVo success() {
        NotifyResponseVo notifyResponseVo = new NotifyResponseVo();
        notifyResponseVo.setStatus("200");
        notifyResponseVo.setMessage("成功");
        return notifyResponseVo;
    }


}
